			
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using DDF.Entity;
using System.Runtime.Serialization;
using ARR.Entities.Gateways;
		
namespace ARR.Entities
{
	[DataContract]
	[Serializable]	
	public partial class History : EntityBase
	{
		[DataMember]
		private HistoryRow row;
		
		public History(HistoryRow row)
		{
			this.row = row;
		}
		
		public History()
		{
			this.row = new HistoryRow();
		}
		
		[DataMember]
		public int Id
		{
			get { return row.Id; }
			set { row.Id = value; }
		}

		[DataMember]
		public int CountryId
		{
			get { return row.CountryId; }
			set { row.CountryId = value; }
		}

		[DataMember]
		public string Title
		{
			get { return row.Title; }
			set { row.Title = value; }
		}

		[DataMember]
		public int? RangeReviewId
		{
			get { return row.RangeReviewId; }
			set { row.RangeReviewId = value; }
		}

		[DataMember]
		public decimal Rate
		{
			get { return row.Rate; }
			set { row.Rate = value; }
		}

		[DataMember]
		public decimal SpacesConversion
		{
			get { return row.SpacesConversion; }
			set { row.SpacesConversion = value; }
		}

		[DataMember]
		public decimal FuelsConversion
		{
			get { return row.FuelsConversion; }
			set { row.FuelsConversion = value; }
		}

		
		public HistoryRow GetRow()
        {
            return row;
        }
		
	} 
} 
